package com.xxx.mall.mapper;

import com.xxx.mall.model.ShopUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xxx.mall.vo.ShopUserInfoVO;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 商家用户 Mapper 接口
 * </p>
 *
 * @author 邢晨旭
 * @since 2023-11-16
 */
public interface ShopUserMapper extends BaseMapper<ShopUser> {

    /**
     * 根据用户id获取商家用户信息
     * @param userId 用户id
     * @param shopId 店铺id
     * @return 商家用户信息
     */
    ShopUserInfoVO queryByUserId(@Param("userId") Long userId, @Param("shopId") Long shopId);
}
